home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1574 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  41 lines

  1. Path: enterprise.sct.gu.edu.au!usenet
  2. From: Thea Cassel <tcassel>
  3. Newsgroups: comp.lang.c
  4. Subject: ATTENTION C EXPERTS!! Extern Declarations - NEED HELP!
  5. Date: 15 Jan 1996 04:29:21 GMT
  6. Organization: Griffith University, SCT
  7. Message-ID: <4dcl71$94s@enterprise.sct.gu.edu.au>
  8. NNTP-Posting-Host: sisyphus.cit.gu.edu.au
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.3 sun4c)
  13. X-URL: news:comp.lang.c
  14.  
  15. I am having difficulty understanding the following code and every book I get on
  16. the subject does not explain the multiple MACROS that are in the definition.
  17.  
  18. extern unsigned int _NEAR _CDECL _osversion;
  19.  
  20. /* where _NEAR and _CDECL are macros defined as:*/
  21.  
  22. #ifndef NO_KEYS
  23.     #define _CDECL cdecl
  24.     #define _NEAR near
  25. #else
  26.     #define _CDECL
  27.     #define _NEAR
  28. #endif 
  29.  
  30. /* There is only two places where cdecl and near are mentioned in the rest of
  31. the program - the following appears once in two seperate header files */
  32.  
  33. #define _NEAR near
  34. #define _CDECL cdecl
  35.  
  36. /* I am attempting to make this program ansi C compilable, and am stuck on this
  37. as I dont understand what the above code is doing. Any help would be greatly
  38. appreciated. Kind Regards, Thea Cassel  tcassel@sisyphus.cit.gu.edu.au
  39. */
  40.  
  41.